<template>
  <div class="wx-login">
    <q-btn label="解除绑定" color="warning" @click="clear" />
  </div>
</template>

<script setup>
import { clearWx } from '@/plugin/wxlogin/api/index.js'
import { useQuasar } from 'quasar'

const $q = useQuasar()

const clear = async () => {
  const res = await clearWx()
  if (res.code === 0) {
    $q.notify({ type: 'positive', message: res.msg })
  }
}
</script>

<style lang="scss" scoped>
.wx-login {
  display: inline-block;
  .scan-ercode {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}
</style>
